# It is recommended to test the script on a local machine for its purpose and effects. # ManageEngine Endpoint Central will not be responsible for any # damage/loss to the data/setup based on the behavior of the script. # Description - Script to check if a folder exsits. # Parameters - # Example - "/Applications/python" # Example - "/Users/test/Desktop/logs" # Configuration Type - USER/COMPUTER if [ $# == '1' ]; then if [ -d "$1" ] then echo "Directory \"$1\" exists." exit 0 else echo "Error: Directory \"$1\" does not exists." exit 2 fi else echo "Invalid Arguments - Please refer description of the script" exit 1 fi